package com.ruoyi.yuwen.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 验证码对象 t_code
 * 
 * @author ruoyi
 * @date 2023-02-27
 */
@Data
public class Code extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 验证码 */
    @Excel(name = "验证码")
    private String code;

    /** 创建时间 */
    @Excel(name = "创建时间")
    private Integer addTime;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("phone", getPhone())
            .append("code", getCode())
            .append("addTime", getAddTime())
            .toString();
    }
}
